package com.zwh.controller;



import com.zwh.api.FeginDemo2Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("fegin-demo1")
public class FeginDemo1Controller {

    @Autowired
    private FeginDemo2Service feginDemo2Service;

    @GetMapping("/hello")
    public String hello() {
        return "fegin-demo1 hello";
    }

    @GetMapping("/gethello")
    public String gethello() {
        System.out.println("gethello");
        return feginDemo2Service.hello();
    }
}
